import React, {Component} from 'react';
import { Button } from 'antd';
import { HomeOutlined } from '@ant-design/icons';

import { HOME } from '@/config/url';
import styles from './index.module.scss';

export default props => {
    return (
        <div className={styles['wrapper']}>
            <div className={styles['image']}>
                <img src={`/images/404.svg`} alt="" />
            </div>
            <div className={styles['button']}>
                <Button icon={<HomeOutlined/>} onClick={e => {location.href = HOME}}>首页</Button>
            </div>
        </div>
    );
}